package com.xinzhi.controller;

import com.xinzhi.service.KouFenShenSuService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class KouFenShenSuController {
    @Autowired
    private KouFenShenSuService kouFenShenSuService;

    /**
     * 特殊扣分申诉审核查询接口
     * @return
     */
    @GetMapping("/selectKoushen")
    public Result selectKoushen() {
        return kouFenShenSuService.selectAl();
    }


    /**
     * 特殊扣分申诉审核根据年份查询接口
     */

    @GetMapping("/selectKouByYearnumbersu")
    public Result selectKouByYearnumbersu(String yearnumber) {
        return kouFenShenSuService.selectKouByYearnumber(yearnumber);
    }


    /**
     *特殊扣分申诉审核删除接口
     */

    @PostMapping("/updatereasonfor")
    public Result updatereasonfor(String reasonfor,Integer deleted) {
        Result deleteupdate = kouFenShenSuService.deleteupdate(reasonfor, deleted);
        return deleteupdate;
    }
}
